// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import UserUtils from './utils/user'
import auth from './utils/auth'
import WxUtils from './utils/wechat'
import 'font-awesome/css/font-awesome.css'
import $ from 'jquery'
import Tree from './components/expense/minitree.vue'
import AsynTree from './components/expense/asyntree.vue'
import  { ConfirmPlugin } from 'vux'
import  { AlertPlugin } from 'vux'
import dataFormat from "./mixin/dataFormat";
import  { LoadingPlugin } from 'vux'

Vue.use(LoadingPlugin)
Vue.use(UserUtils)
Vue.use(WxUtils)
Vue.use(ConfirmPlugin)
Vue.use(AlertPlugin)
Vue.use(auth)
Vue.mixin(dataFormat)


Vue.component('Tree',Tree)
Vue.component('AsynTree',AsynTree)

Vue.prototype.$GlobalVue = new Vue({
  el: '#app-box',
  router:router,
  store:store,
  components: { App },
  template: '<App/>'
})
